package com.tem.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tem.common.tool.domain.UserDeptComSys;
import com.tem.common.tool.result.ResultUtil;
import com.tem.system.entity.SysDepartmentEntity;
import com.tem.system.vo.SysDeptRequest;

import java.util.List;

/**
 * 系统部门服务接口
 * @author 腾木科技
 * @date 2021/6/13 12:03
 */
public interface SysDeptService extends IService<SysDepartmentEntity> {

    ResultUtil<List<SysDepartmentEntity>> queryList(SysDeptRequest request);

    ResultUtil<SysDepartmentEntity> getDeptById(String id);

    ResultUtil<SysDepartmentEntity> deleteDept(String id);

    ResultUtil<SysDepartmentEntity> saveDept(SysDepartmentEntity sysDepartmentEntity);

    ResultUtil<?> deleteBath(long[] ids);

    /**
     * 根据分店id，获取系统关联数据
     * @param deptId
     * @return
     */
    public UserDeptComSys getSysCom(Long deptId);
}
